<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>限制图片尺寸与滑动鼠标滚轮调整图片尺寸</title>
<script language="JavaScript" type="text/javascript">
<!--
function bbimg(obj){
	var zoom=parseInt(obj.style.zoom, 10)||100;
	zoom+=event.wheelDelta/12;
    if (zoom>0) obj.style.zoom=zoom+'%';
	  return false;
}
//-->
</script>


</head>

<body>

<p style="line-height: 2" align="center">
  <img onload="javascript:if(this.width>500)this.style.width=420;" onmousewheel="return bbimg(this)" src="images/01.jpg"  border="0" />
</p>

</body>
</html>
